The
answer is through the Event Viewer and Performance Monitor. You need to
enable certain counters in the Registry. To start with, perform the
following:
1. | Click Start, Run.
|
2. | Open your Registry Editor by typing regedit and pressing Enter.
|
3. | Navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ESE\Performance.
|
4. | Right-click the word Performance and select New, and then select DWORD Value.
|
5. | Call the new DWORD value Show Advanced Counters.
|
6. | After it is created, double-click the new Show Advanced Counters and enter the value data field as 1.
|
7. | Close the Registry Editor.
|
You
can use the Event Viewer, as well as the Reliability and Performance
Monitor (or simply the Performance Monitor in Server 2003), to search
for online defragmentation information.
Within Event Viewer, you want to perform searches in the Application log for Event ID: 703.
You
want to filter the log and look for online defragmentation completion
at least every two weeks on every database on the server.
To filter events in Event Viewer in Windows Server 2008 for Event 703, perform the following:
1. | Open Event Viewer. (Click Start, point to Administrative Tools, and then select Event Viewer.)
|
2. | In Event Viewer, look at the left Navigation Tree, expand Windows Logs, and then expand Application to view the Application log.
|
3. | To filter for Event 703, look at the Actions pane and click Filter Current Log. The Filter Current Log dialog box displays.
|
4. | From the Filter Current Log dialog box, on the Filter tab, in the Includes/Excludes Event IDs box, type 703, and then click OK. All events with an ID of 703 display in the Result pane.
|
5. | To view the event description, right-click the event, and select Event Properties.
|
The
monitoring aspect through the Performance Monitor can be performed with
standard counters and/or the counters you enable through the Registry.
In either case, what are we looking for?
For starters, SP1 added some counters to look at, such as the following example:
MSExchange Database—Instances \Online Defrag Pages Freed/Sec and
\Online Defrag Data Moves/Sec
In addition, there are a handful of other Online Defrag counters that you can utilize. For more information, go to http://technet.microsoft.com/en-us/library/bb691410(EXCHG.80).aspx.